home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3s
/
ferror.z
/
ferror
Wrap
Text File
|
1998-10-20
|
3KB
|
67 lines
FFFFEEEERRRRRRRROOOORRRR((((3333SSSS)))) FFFFEEEERRRRRRRROOOORRRR((((3333SSSS))))
NNNNAAAAMMMMEEEE
ferror, feof, clearerr, fileno - stream status inquiries
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
iiiinnnntttt ffffeeeerrrrrrrroooorrrr ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
iiiinnnntttt ffffeeeeooooffff ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
vvvvooooiiiidddd cccclllleeeeaaaarrrreeeerrrrrrrr ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
iiiinnnntttt ffffiiiilllleeeennnnoooo ((((FFFFIIIILLLLEEEE ****ssssttttrrrreeeeaaaammmm))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_f_e_r_r_o_r returns non-zero when an I/O error has previously occurred reading
from or writing to the named _s_t_r_e_a_m, otherwise zero.
_f_e_o_f returns non-zero when EEEEOOOOFFFF has previously been detected reading the
named input _s_t_r_e_a_m, otherwise zero.
_c_l_e_a_r_e_r_r resets the error indicator and EEEEOOOOFFFF indicator to zero on the
named _s_t_r_e_a_m.
_f_i_l_e_n_o returns the integer file descriptor associated with the named
_s_t_r_e_a_m (see below for common file descriptors, and _o_p_e_n(2) for general
information on file descriptors.)
The following symbolic values in <_u_n_i_s_t_d._h> define the file descriptors
that are associated with the C language _s_t_d_i_n, _s_t_d_o_u_t, and _s_t_d_e_r_r when an
application is started:
Name Description Value
STDIN_FILENO Standard input value, _s_t_d_i_n 0
STDOUT_FILENO Standard output value, _s_t_d_o_u_t 1
STDERR_FILENO Standard error value, _s_t_d_e_r_r 2
NNNNOOOOTTTTEEEESSSS
All of these functions are implemented both as functions in the C library
and as macros in <_s_t_d_i_o._h>.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
open(2), fopen(3S), stdio(3S).
PPPPaaaaggggeeee 1111